import request from '@/utils/request'

// 查询零钱列表
export function listLoosechange(query) {
  return request({
    url: '/system/loosechange/list',
    method: 'get',
    params: query
  })
}

// 查询零钱详细
export function getLoosechange(id) {
  return request({
    url: '/system/loosechange/' + id,
    method: 'get'
  })
}

// 新增零钱
export function addLoosechange(data) {
  return request({
    url: '/system/loosechange',
    method: 'post',
    data: data
  })
}

// 修改零钱
export function updateLoosechange(data) {
  return request({
    url: '/system/loosechange',
    method: 'put',
    data: data
  })
}

// 删除零钱
export function delLoosechange(id) {
  return request({
    url: '/system/loosechange/' + id,
    method: 'delete'
  })
}
